package com.ecoolex.hotel.saas.ws;

import java.util.List;

import com.ecoolex.framework.common.exception.BizException;
import com.ecoolex.framework.common.pojo.Page;
import com.ecoolex.framework.common.pojo.Pagination;
import com.ecoolex.hotel.saas.entity.Distribution;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategory;
import com.ecoolex.hotel.saas.entity.PresaleCouponCategoryJoint;
import com.ecoolex.hotel.saas.entity.SalesUser;
import com.ecoolex.hotel.saas.pojo.AddPresaleCouponCategoryJointDTO;
import com.ecoolex.hotel.saas.pojo.QuerySalesUserDTO;

public interface OperationService {
	
	Distribution getDistribution(Integer distributionId);

	Distribution getByDepartmentIdAndType(Integer departmentId, Integer type);
	
	Distribution addDistribution(Distribution add, String createUser) throws BizException;
	
	Distribution editDistribution(Distribution edit, String updateUser) throws BizException;
	
	PresaleCouponCategory getPresaleCouponCategory(Integer categoryId);
	
	Pagination<PresaleCouponCategory> queryPresaleCouponCategory(Integer storeId,String name,Page page);

	Pagination<PresaleCouponCategory> queryPresaleCouponCategoryForUser(Integer storeId,String name,Page page);
	
	PresaleCouponCategory addPresaleCouponCategory(PresaleCouponCategory add, String createUser) throws BizException;
	
	PresaleCouponCategory editPresaleCouponCategory(PresaleCouponCategory edit, String updateUser) throws BizException;
	
	Boolean delPresaleCouponCategory(PresaleCouponCategory record, String updateUser) throws BizException;
	
	Long presaleCouponJointCount(Integer categoryId);
	
	PresaleCouponCategoryJoint getPresaleCouponCategoryJoint(Integer id);
	
	Pagination<PresaleCouponCategoryJoint> queryPresaleCouponCategoryJoint(Integer categoryId,String presaleCouponName, Page page);
	
	Boolean addPresaleCouponCategoryJoint(List<AddPresaleCouponCategoryJointDTO> addList, String createUser) throws BizException;
	
	PresaleCouponCategoryJoint editPresaleCouponCategoryJoint(PresaleCouponCategoryJoint edit, String updateUser) throws BizException;
	
	Boolean delPresaleCouponCategoryJoint(PresaleCouponCategoryJoint edit, String updateUser) throws BizException;
	
	Boolean isRelationCategory(Integer preCouponId, Integer categoryId);
}
